﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DayOfWeekServiceRest;

namespace DayOfWeekServiceRest
{
    public class DayOfWeekServiceRest : IDayOfweekServiceRest
    {
        public string GetData(string date)
        {
            //DateTime newDate = new DateTime(date);
            string day;
            switch (date)
            {
                case "Monday": day = "Понеделник";
                    break;
                case "Tuesday": day = "Вторник";
                    break;
                case "Wednesday": day = "Сряда";
                    break;
                case "Thursday": day = "Четвъртък";
                    break;
                case "Friday": day = "Петък";
                    break;
                case "Saturday": day = "Събота";
                    break;
                case "Sunday": day = "Неделя";
                    break;
                default: day = "Invalid";
                    break;
            }
            return day;
        }
    }
}
